#!/bin/bash

# 获取传入的参数
ARG1=$1
ARG2=$2

echo "Hello from userspace helper script!"
echo "Arg1: $ARG1"
echo "Arg2: $ARG2"

# 模拟一些工作和不同的退出状态
if [ "$ARG1" == "success" ]; then
    echo "Exiting with success code 0."
    exit 0
elif [ "$ARG1" == "fail" ]; then
    echo "Exiting with failure code 1."
    exit 1
else
    echo "Exiting with unknown code 42."
    exit 42
fi

